# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-couchdb
_pkgname=CouchDB
pkgver=1.2
pkgrel=10
pkgdesc='Python library for working with CouchDB.'
arch=('any')
url='https://pypi.org/project/CouchDB/#files'
license=('BSD')
depends=('python' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('dc62dadebe728346c177eadc8504c217e659548b22187eb7758ddf71b33ac79629f2fd387db5037e129c8834b478f16d1423f712e70e95e4f847f9ede83bdb75')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-buil
}

